<?php
namespace app\web\validate;

use think\Validate;

/**
 * 行为验证器
 * @package app\menus\validate
 * @author
 */
class ViperCardError extends Validate
{
    //定义验证规则
    protected $rule = [
        'hour'  => 'require',
        'number'  => 'require',
        'cashier_number'=>'require',
        'engineer_number'  => 'require',
    ];
    //定义验证提示
    protected $message = [
        'hour.require' => '请填写间隔时间',
        'number.require' => '请填写使用次数',
        'cashier_number.mobile' => '请输入同一收银连续使用同一张卡次数',
        'engineer_number.require' => '请输入同一技师连续使用同一张卡次数',
    ];



    //定义验证场景
    protected $scene = [
        'add'   =>  ['hour','number','cashier_number','engineer_number'],
    ];

}
